package com.kgis.fm.business.access.service.impl.support;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.kgis.fm.business.model.Connectivity;


public class ConnectivityMapper implements RowMapper<Connectivity>{

	@Override
	public Connectivity mapRow(ResultSet rs, int rowNum) throws SQLException {
		Connectivity connectivity =new Connectivity();
		connectivity.setFid(rs.getLong("KGM_FID"));
		connectivity.setFno(rs.getInt("KGM_FNO"));
		connectivity.setCno(rs.getInt("KGM_CNO"));
		connectivity.setCid(rs.getLong("KGM_CID"));
		connectivity.setNode1(rs.getLong("NODE1_ID"));
		connectivity.setNode2(rs.getLong("NODE2_ID"));
		connectivity.setId(rs.getLong("KGM_ID"));
		connectivity.setUserLength(rs.getDouble("USER_LENGTH"));
		connectivity.setActualStatus(rs.getString("ACTUAL_STATUS"));
		return connectivity;
	}

}
